package com.web.exiaodao.remote.service;

import com.web.exiaodao.business.constant.JConstant;
import com.web.exiaodao.business.entity.FavoriteTable;
import com.web.exiaodao.remote.vo.FavoriteTableVo;
import com.web.webstart.base.exception.BusinessException;
import com.web.webstart.base.service.ApiBaseService;
import com.web.webstart.base.util.result.XaResult;

public interface ApiFavoriteTableService extends ApiBaseService<FavoriteTableVo,FavoriteTable>{

    /**
     * 是否已经收藏
     * @param userId 用户id
     * @param favoriteObjectId 对象id
     * @param type  参加 {@link JConstant.Order_CommentType}
     * @author duandazhi
     * @date 2016/12/20 下午1:50
     * @return
     * @throws BusinessException
     */
    public XaResult<FavoriteTable> isFavorite(Long userId, Long favoriteObjectId, String type) throws BusinessException;
}
